home *** CD-ROM | disk | FTP | other *** search
- /* ===================
- * AEAModelProperty.cc
- * ===================
- */
-
- #include "AEADebugging.h"
-
- #include "AEAModelProperty.hh"
- #include "AEADesc.hh"
-
- AEAModelProperty::AEAModelProperty(const AEAModel &inContainer, DescType inPropertyID)
- : AEAModelSub(inContainer), mPropertyID(inPropertyID)
- {
- }
-
- void
- AEAModelProperty::GetKeyData(DescType inKeyForm, AEDesc &outAEDesc) const
- {
- OSErr err;
- if (inKeyForm != formPropertyID)
- ThrowOSErr_(errAEEventNotHandled); // Change this
-
- AEADesc desc;
- desc.Create(typeType, &mPropertyID, sizeof mPropertyID);
-
- outAEDesc = desc.Ref();
- desc.Reset();
- }
-